package com.ajax;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MenuLoader extends HttpServlet {
	private static final long serialVersionUID = 1L;


	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		this.doPost(request, response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		response.setCharacterEncoding("utf-8");
		PrintWriter out = response.getWriter();
		out.println("[" +
				"{text:'管理员管理',id:'menu_id_1',title:'系统管理员1',leaf:'true',comp:'pages.test.Panel'}," +
				"{text:'管理员管理2',id:'menu_id_2',title:'系统管理员2',leaf:'true',comp:'pages.test.Panel2'}," +
				"{text:'管理员管理3',id:'menu_id_3',title:'系统管理员3',leaf:'true',comp:'pages.test.Panel3'}]");
		out.close();
	}

}
